<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@include file="../include/base.jsp" %>
<html lang="en-US">
<head>
	
	<title>KaiSheng-客户管理系统</title>
	<link rel="stylesheet" type="text/css" href="${basePath}/css/bootstrap.css"/>
	<!--<link href="css/application.css" media="all" rel="stylesheet" type="text/css">-->
	
	<%@include file="../include/top.jsp" %>
</head>
<body class="body" style="background:url('img/bk.png') repeat scroll; ">
	<jsp:include page="../include/header.jsp">
	</jsp:include>
	<div class="container" style="margin-top:20px;width:100%">
			<div class="row"> 
				<div class="span3 offset1" style="width:15%">
					<div class="box" style="border:0px solid #DDDDDD;font-size:18px;font-family:微软雅黑;">
						<ul class="nav nav-list"  id="myul">
							<li class="active"><a href="#"><i class="icon-home"></i>最新动态</a></li>
							<li><a href="#"><i class="icon-user"></i>联系人</a></li>
							<li><a href="#"><i class="icon-fire"></i>任务</a></li>
							<li><a href="#"><i class="icon-file"></i>交易</a></li>
						</ul>
					</div>
				</div>
			<div class="span6" style="width:55%;">
				<div class="well screen" style="padding:0px;">
					<div class="page-header header" style="margin-bottom:0px;margin-top:15px;padding-bottom:15px;" >
						<span style="margin-left:30px;font-size:20px;font-family:微软雅黑;">最新动态</span>
					</div>
	
					<div class="main"  style="background-color:#fff;">
						<ul style="list-style-type:none;margin-bottom:0px;">
						  <c:choose>
							<c:when test="${fn:length(messageList) == 0 }">
								<blockquote>没有信息！</blockquote>
							</c:when>
							<c:otherwise>
								<li id="total" style="display:none">${fn:length(messageList)}</li>
								<c:forEach items="${messageList}" var="msg">
								  <li>
									<blockquote>
											<img src="img.jspx?img=${msg.e.picture}" style="font-size:15px;display:block;float:left;"/>
											<span style="padding-left:15px;">${msg.e.name}:${msg.content}</span><br>
											<span style="padding-left:15px;">----发表于：${msg.tiptime }</span>
											<hr style="border:1px dashed; height:1px">
									</blockquote>
								  </li>
								</c:forEach>
							</c:otherwise>
						  </c:choose>
						</ul>
					</div>
				</div>
			</div>
			<div class="span3" style="width:22%">
				<div class="box" style="background-color:#fff;border:1px solid #DDDDDD;padding:5px; margin-right:20px;">
					<div class="head" style="border-bottom: 1px solid #DDDDDD;">我的任务</div> 
						<p>
							<a href="#">添加新任务</a>
						</p>
				</div>
			</div>
		</div>
	</div>	
</body>
</html>
